﻿@{
    Lang lang = ViewBag.Lang;
   DataHelper.New[] LatestNews = ViewBag.LatestNews;
   DataHelper.SEO seo = ViewBag.SEO;
}
<div id="latestnews" class="left">
    <h2 style="color: White">
        @lang.LATESTNEWS</h2>
    <div class="blog">
        @{
            if (LatestNews != null)
            {
                foreach (var n in LatestNews)
                {
            <text> <a href="@seo.Domain/news/detail/@MDF.Utilites.Helper.StringHelper.ToNonUnicodeAndLower(n.Title).Replace(" ","-")-@n.ID">
                <div class="news">
                    <div class="news-date left">
                        <div class="news-day">
                            @n.CreatedDate.Day</div>
                        <div class="news-month">
                            @lang.GetMonth(@n.CreatedDate.Month)</div>
                    </div>
                    <div class="news-description left">
                        @n.Title
                    </div>
                </div>
            </a>
            </text>
                }
            }
        }
        <a href="@seo.Domain/news" style="float: right; text-decoration: underline; margin-right: 43px;">@lang.READMORE</a>
    </div>
</div>
